home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 007a / rwshel11.zip / README.DOC < prev    next >
Text File  |  1991-11-19  |  14KB  |  331 lines

  1.     WARNING: Only users of Clarion Professional Developer and Report
  2.     Writer(tm) will be able to benefit from the files included in
  3.     this .zip file.
  4.  
  5.                          RW Shell Version 1.1
  6.  
  7.     In order for you to see this .app in short order, I have included
  8.     .exe files. However, these were linked with RT Linker so you must
  9.     have a copy of clarion.rtl and rtlinkst.com in your path (or tell
  10.     the program where they are at when prompted) to use it. Otherwise,
  11.     compile the .app's normally to view its operation.
  12.  
  13.     Please copy your printer.ctl into the directory you test this .app
  14.     in, and be sure rrun.exe or reporter.exe is in the DOS path or
  15.     is in the current directory to run the program.
  16.  
  17.     PURPOSE: To call Report Writer(tm) reports from Designer
  18.     applications.
  19.  
  20.     FILES INCLUDED:
  21.  
  22.     BBSBASE.DAT   -  Sample BBS data file
  23.     INSTRPT1.DEF  -  Report definition for instructions report
  24.     MPBBSDB.DEF   -  Database definition for sample data
  25.     PORT.APP      -  Application file for port assignment
  26.     PORT.EXE      -  Port assignment .exe linked with RT Link
  27.     README.DOC    -  File you are now reading
  28.     REPORTS.DAT   -  Data file for report definitions
  29.     REPORTS.K01   -  Key file for report names.
  30.     REPORTS.K02   -  Key file for instruction number.
  31.     REPORTS.MEM   -  Memo file for report instructions
  32.     RPTSDB1.DEF   -  Database definition file for instruction data
  33.     RWPORT.DAT    -  Data file for Port Assignments
  34.     RWPORT.K01    -  Key file for port order/port assignment
  35.     RWPORT.K02    -  Key file for port order
  36.     RWS.HLP       -  Sample help to include in designer app
  37.     RWSHELL.APP   -  Application file for RW Shell
  38.     RWSHELL.EXE   -  RW Shell .exe linked with RT Link
  39.     RWSRPT1.DEF   -  Report definition for BBS report
  40.  
  41.     DISTRIBUTION: Feel free to copy, modify, include, exclude, any
  42.     and all ideas in the rwshell.app file. I take NO responsibility
  43.     for anyone making extra trips to the bank after utilizing ideas 
  44.     that have come from at least 4 different sources.
  45.  
  46.     NEW FEATURES:
  47.  
  48.          - Help is vastly improved and expanded.
  49.  
  50.          - NEW report instruction area
  51.  
  52.          - Report and database path lengthened
  53.  
  54.          - MOST importantly, files can be sent to screen, disk, a
  55.            predetermined file name in current directory, or to
  56.            LPT1, LPT2, LPT3, COM1, or COM2.
  57.  
  58.     HISTORY:
  59.  
  60.     After reviewing the RW_IN_DE.ZIP file I downloaded from Clarionet
  61.     (Clarion Software Corporation's BBS) for calling Report
  62.     Writer(tm) Reports from Designer applications, I still felt a few
  63.     things were missing since everything was combined (definitions
  64.     and printing) on one screen. Course, the techs at Clarion aren't
  65.     supposed to do all our homework (except for those HIGH designing
  66.     fees - smile), so here is an alternative.
  67.                                 Page 2
  68.  
  69.                          RW Shell Version 1.1
  70.  
  71.     EQUIPMENT NEEDED: Clarion Professional Developer
  72.                       Report Writer(tm)
  73.                       AND all your favourite computer
  74.                       equipment to run the above.
  75.  
  76.     CREDITS:
  77.  
  78.     Paul, Tech 22, Clarion Software Corporation
  79.  
  80.     Cynthia Marr
  81.  
  82.     Sam, Diversified Technology Solutions
  83.  
  84.     Myself, Dave Troxell, Encourager Software
  85.  
  86.     OBJECTIVES:
  87.  
  88.         1. Let the user choose printing to the printer, disk, or to
  89.            the screen.
  90.  
  91.         2. Have a separate screen for report definitions, so that
  92.            end-users wouldn't have to look at report definitions by
  93.            accident.
  94.  
  95.     After reading Sam and Cynthia's tips, and starting with Paul's
  96.     basic .app from RW_IN_DE.ZIP,  I developed the rwshell.app with
  97.     the criteria I had in mind. I've included some help screens that
  98.     will at least give you a start on developing some of your own.
  99.  
  100.     Lots of room for improvement, but I'd like to think that Paul had
  101.     something similar in mind when he gave us a good starting point.
  102.  
  103.     SOME of those improvements include:
  104.  
  105.     Thanks to the prompting of RJ Dollard on Clarionet, I decided to
  106.     include built in support for LPT1, LPT2, LPT3, COM1 and COM2.
  107.  
  108.  
  109.     Here are two methods that I have devised. One is to make the
  110.     DEVICE field in the memory file a string long enough to contain
  111.     the information and under the choices selection, for example:
  112.  
  113.     ╔════════════════════════════════════════════╗
  114.     ║                    Field                   ║
  115.     ║                                            ║
  116.     ║  Field Name :DEVICE                        ║
  117.     ║  Description:Report Device Name            ║
  118.     ║  Type       :String                        ║
  119.     ║  Length     :  6                           ║
  120.     ║  Picture    :@s6                           ║
  121.     ║  Value      :
  122.     ║  Choices    :S P-LPT1 F P-LPT2 P-LPT3 F-COM1 F-COM2 F-SAMPLE.RPT
  123.     ║  Dimensioned:
  124.     ║  Type Mode  :AsIs      Ins  Ovr  AsIs      ║
  125.     ║  Required   :No        Yes  No             ║
  126.     ║  Immediate  :No        Yes  No             ║
  127.     ║  Num Lock   :No        Yes  No             ║
  128.     ║  Left Just  :No        Yes  No             ║
  129.     ║  Upper Case :Yes       Yes  No             ║
  130.     ║  Help ID    :                              ║
  131.     ╚════════════════════════════════════════════╝
  132.  
  133.                                 Page 3
  134.  
  135.     If you don't understand the F-COM1 in the choices selection for
  136.     the Report Device field, you need to read the section on working
  137.     with serial printers and Report Writer, and you must do a DOS MODE
  138.     statement before entering your report program.
  139.  
  140.     A second method is to use a table pick list, which is included in
  141.     this update of RW Shell. In order to create the data for that pick
  142.     list and not have it included as part of the RW Shell code, I have
  143.     included a small port.app (there is also an .exe for it). It is
  144.     VERY simple to use and no help is given.
  145.  
  146.     VERY IMPORTANT: I'm sure this has NEVER happened to anybody during
  147.     development or with a client, so I'm only saying this so
  148.     ABSOLUTELY no one will ever get embarrassed when it does! When you
  149.     use a Designer coded application and it can't find a .dat file, it
  150.     may start doing the dance of oscillations, followed by your
  151.     infamous DOS 3 finger salute. Now if you defined in the file
  152.     definitions to create a new file, and it has a table with an
  153.     update form, no problem. But, RW Shell is a good example of a
  154.     table (SHO_PORT procedure - SEND Reports) WITHOUT an update form.
  155.     You DON'T want your end user to modify the table pick list for
  156.     SEND reports. That's why I included a stand alone .app (port.app)
  157.     for you to create the data. Just make sure RWPORT.DAT is in your
  158.     own or client's subdirectory when you fire your program up. No, I
  159.     didn't think it's ever happened to anyone, just checking.
  160.  
  161.     Basically, there are 3 fields in the port.app:
  162.  
  163.     Port Name:
  164.     These must be VALID Report Writer 'O=' Output selections,
  165.     For example: P-LPT1  P-LPT2  F-COM1  S  F  F-FILENAME.EXT
  166.  
  167.     Port Description:
  168.     Instead of the cryptic names given in the choices example such as
  169.     P-LPT1, your end-user sees a name like Parallel Port 1 or whatever
  170.     you choose.
  171.  
  172.     Order #:
  173.     This number determines where on the table pick list, your port
  174.     description will be placed.
  175.  
  176.     Here is the sample data for your convenience.
  177.  
  178.     RW Port Name     Port Description   Port Order Number
  179.  
  180.     S                Screen                 1
  181.  
  182.     P-LPT1           Parallel Port 1        2
  183.  
  184.     F                Disk File              3
  185.  
  186.     P-LPT2           Parallel Port 2        4
  187.  
  188.     P-LPT3           Parallel Port 3        5
  189.  
  190.     F-COM1           Comm Port 1            6
  191.  
  192.     F-COM2           Comm Port 2            7
  193.  
  194.     F-SAMPLE.RPT     Named Disk File        9
  195.  
  196.  
  197.  
  198.  
  199.                                 Page 4
  200.  
  201.     There should be enough on-line help to use the new table pick list
  202.     in the new RW Shell (actually it's pretty straight forward).
  203.  
  204.     Use the on-line help for information about using serial printers
  205.     and also read the section in the Report Writer manual about serial
  206.     printers as well.
  207.  
  208.     REPORT INSTRUCTIONS:
  209.  
  210.     You may or may not find this last feature useful. It's one way to
  211.     provide on-line report instruction help for you or your client
  212.     that can be easily changed. Let's look at it another way. Maybe
  213.     you have developed on-line help in describing how a report
  214.     operates. If it's hard coded, you'll have a real maintenance
  215.     problem. But, let's say you used chlp.exe to create it. Now, you
  216.     figure, I'll just change the .hlp file when I need to modify my
  217.     report instructions. Why not modify it on-site if necessary, and
  218.     give your client a chance to print report instructions for
  219.     themselves if necessary.
  220.  
  221.     That is the aim of the new report instruction procedures. If you
  222.     don't want your clients to have the ability to modify
  223.     instructions, only print them or view them online, use a password
  224.     protecting operation for the table.
  225.  
  226.     The same record holds information for both the report definitions
  227.     and the report instructions. In this example file, you use
  228.     separate tables to modify them, respectively. However, you may
  229.     want to do a 2 page update form and combine them, or 1 screen and
  230.     shorten the memo viewing size. I kept them separate so a end-user
  231.     could just view the instructions, and see as much as possible on
  232.     one screen without scrolling.
  233.  
  234.     If you have clients that also use Report Writer, this gives them a
  235.     chance to add instructions about their reports. So there are some
  236.     advantages.
  237.  
  238.     The report instruction number is generated automatically and
  239.     cannot be modified in this example. There is a sample report for
  240.     printing the instructions. The memo field is 60 characters wide
  241.     and up to 53 lines long. I purposely chose this for a one page
  242.     printout.
  243.  
  244.     A sample print the instructions report is given for your
  245.     convenience.
  246.  
  247.  
  248.  
  249.     CONCLUSIONS:
  250.  
  251.     I hope that the new features will assist you in making a better
  252.     design for yourself or your clients. If while using Designer and
  253.     Report Writer, you have often thought about a feature you want to
  254.     implement, but could not find the time to design, or you're still
  255.     just learning the Clarion PRO tools, drop a line to the two BBSs
  256.     listed at the end of this doc, or to my business address. As I
  257.     have the time, I'll consider developing such suggestions into
  258.     future updates of RW Shell. Or maybe you have a unique solution.
  259.  
  260.     In the beginning of coding programs for the first personal
  261.     computers, a sizable number of programmers swapped code, or wrote
  262.     programs that became Public Domain. You probably enjoy a number of
  263.     small utilities on your computer that fit that category.
  264.  
  265.                                 Page 5
  266.  
  267.     Often times you'll benefit from some free idea exchange. So I
  268.     encourage you to share some of your ideas. The Clarion .app
  269.     format has been a great forum for exchanging ideas. I personally
  270.     believe those who share freely on small ideas will financially
  271.     benefit in the long run. Something to consider. Thanks for your
  272.     positive comments thus far and constructive criticism.
  273.  
  274.     Solution needed: Small stand alone product (commercial, shareware,
  275.     or PD - without runtime fees), that allows an end-user to import
  276.     printers from the matrix.ctl or laser.ctl into their own custom
  277.     printer.ctl without owning Report Writer.
  278.  
  279.     Here's Paul's original readme.doc for the advantages of using
  280.     Report Writer reports inside a Designer application.
  281.  
  282.                  Integrating Report Writer With Designer
  283.  
  284.     This application allows you as a developer a quick and easy way
  285.     to integrate Report Writer reports into designer.  A few
  286.     advantages of using Report Writer from within an application are:
  287.  
  288.         1.  Adding a new report to an existing application does not
  289.             mean you will need to re-gen code, re-compile, and
  290.             re-translate.  All you need to do is create the report
  291.             and database defs in Report Writer and then copy them on
  292.             to the Clients computer.  No more finding out that after
  293.             you add the new report that you've run out of memory !
  294.  
  295.         2.  No more duplicate app files because one client wants
  296.             REPORT_A and another client wants REPORT_B.
  297.  
  298.         3.  The advantage and ease of using a pick list of reports.
  299.  
  300.  
  301.     To integrate this w/ your apps all you need to do is use the
  302.     CTRL-G option in Designer and copy each procedure into you app.
  303.     Also use CTRL-G to copy the file definition from this
  304.     application.
  305.  
  306.     CLOSING REMARKS:
  307.  
  308.     My thanks to all for contributing their ideas, and requests, and 
  309.     to Clarion Software Corporation for their award winning products.
  310.  
  311.     I'll be available through the following BBS's for additional
  312.     comments or questions.
  313.  
  314.     Clarionet - User Name - DaveT
  315.  
  316.     Exec-PC   - User Name - Dave Troxell (414) 789-4210
  317.                 Conference: Office Software   Topic: Database
  318.                 (registered users only)
  319.  
  320.     or at the following address:
  321.  
  322.         Encourager Software
  323.         PO Box 1060
  324.         Highland City, FL 33846-1060
  325.  
  326.     Clarion and Professional Developer are trademarks of Clarion
  327.     Software Corporation.
  328.  
  329.     Report Writer is a registered trademark of Clarion Software
  330.     Corporation.
  331.